package io.renren.utils;

public class StringsUtils {

    public StringsUtils() { /* compiled code */ }

    /**
     * 乘法 数量*单价 =总价
     * @param arrivalNum
     * @param unitPrice
     * @return
     */
    public  static Float mult(Float arrivalNum,Float unitPrice){
        if(null != arrivalNum || null!= unitPrice){
            return arrivalNum * unitPrice;
        }
        return  null;
    }

    /**
     * 根据部门id获取对应的参数
     * @param deptId
     * @return
     */
    public  static int getCanteenId(Long deptId){

        int dept ;
        if(1067246875800000066L == deptId){
          dept =1;
        }else if (1203224459164221441L == deptId){
          dept =2;
        }else {
            dept = 3;
        }
        return dept;

    }
    public  static  String getCanteenName(String deptName){
        if("新食堂".equals(deptName)){
            return  "小";
        }else {
            return  "大";

        }
    }
}
